<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>火电机组冷端优化系统 - 冬季防冻</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <style>
        :root {
            --primary-bg: #0f172a;
            --secondary-bg: #1e293b;
            --card-bg: #1a2435;
            --accent: #5eead4;
            --accent-hover: #88f3e2;
            --text-primary: #e2e8f0;
            --text-secondary: #94a3b8;
            --text-tertiary: #64748b;
            --border-color: #334155;
            --success: #4ade80;
            --warning: #fbbf24;
            --error: #f87171;
            --power-color: #f97316;
            --load-color: #38bdf8;
            --pressure-color: #8b5cf6;
            --temp-color: #f43f5e;
            --font-main: 'Segoe UI', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
            --spacing-sm: 8px;
            --spacing-md: 16px;
            --spacing-lg: 24px;
            --spacing-xl: 32px;
            --radius-sm: 4px;
            --radius-md: 8px;
            --radius-lg: 12px;
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            background: var(--primary-bg);
            color: var(--text-primary);
            font-family: var(--font-main);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            overflow: auto;
        }
        
        /* 导航栏容器 */
        .navbar {
            background: var(--secondary-bg);
            border-bottom: 1px solid var(--border-color);
            padding: 0 var(--spacing-lg);
            height: 60px;
            display: flex;
            align-items: center;
            z-index: 100;
        }
        
        /* Logo区域 */
        .logo-area {
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
            padding-right: var(--spacing-lg);
            border-right: 1px solid var(--border-color);
        }
        
        .logo-icon {
            width: 36px;
            height: 36px;
            background: var(--accent);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-bg);
            font-size: 1rem;
        }
        
        .logo-text {
            font-size: 1.2rem;
            font-weight: 600;
            background: linear-gradient(to right, var(--text-primary), var(--accent));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        
        /* 导航区域 */
        .nav-area {
            flex: 1;
            padding: 0 var(--spacing-xl);
            display: flex;
        }
        
        .nav-menu {
            display: flex;
            list-style: none;
            gap: var(--spacing-xl);
        }
        
        .nav-item {
            position: relative;
        }
        
        .nav-link {
            color: var(--text-secondary);
            text-decoration: none;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: var(--spacing-sm);
            padding: var(--spacing-sm) var(--spacing-md);
            border-radius: var(--radius-sm);
            transition: all 0.3s ease;
        }
        
        .nav-link:hover, .nav-link.active {
            color: var(--accent);
            background: rgba(94, 234, 212, 0.1);
        }
        
        .nav-link i {
            font-size: 0.9rem;
        }
        
        /* 用户区域 */
        .user-area {
            display: flex;
            align-items: center;
            gap: var(--spacing-md);
            position: relative;
        }
        
        .user-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(45deg, var(--accent), #4a7bff);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.9rem;
        }
        
        /* 内容区域 */
        .content-area {
            flex: 1;
            padding: var(--spacing-xl);
            overflow: auto;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%231a2435"/><path d="M20,20 L80,20 L80,80 L20,80 Z" stroke="%23334155" fill="none" stroke-width="0.5"/></svg>');
            background-size: 20px 20px;
        }
        
        /* 冬季防冻页面样式 */
        .winter-protection {
            max-width: 1600px;
            margin: 0 auto;
        }
        
        /* 机组选择区域 */
        .unit-selector {
            background: var(--card-bg);
            border-radius: var(--radius-md);
            padding: var(--spacing-lg);
            margin-bottom: var(--spacing-xl);
            border: 1px solid var(--border-color);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .selector-group {
            display: flex;
            gap: var(--spacing-xl);
        }
        
        .selector-item {
            display: flex;
            flex-direction: column;
        }
        
        .selector-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: var(--spacing-sm);
        }
        
        .selector-select {
            padding: var(--spacing-sm) var(--spacing-md);
            background: rgba(26, 36, 53, 0.7);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-sm);
            color: var(--text-primary);
            font-family: var(--font-main);
        }
        
        /* 卡片样式 */
        .card {
            background: var(--card-bg);
            border-radius: var(--radius-md);
            padding: var(--spacing-lg);
            margin-bottom: var(--spacing-xl);
            border: 1px solid var(--border-color);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
        }
        
        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: var(--spacing-lg);
            padding-bottom: var(--spacing-md);
            border-bottom: 1px solid var(--border-color);
        }
        
        .card-title {
            font-size: 1.2rem;
            font-weight: 600;
            color: var(--accent);
            display: flex;
            align-items: center;
            gap: var(--spacing-sm);
        }
        
        .card-action {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: rgba(94, 234, 212, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
        }
        
        /* 运行状态指标 */
        .status-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: var(--spacing-md);
            margin-bottom: var(--spacing-lg);
        }
        
        .status-item {
            background: rgba(26, 36, 53, 0.5);
            border-radius: var(--radius-sm);
            padding: var(--spacing-md);
            border: 1px solid var(--border-color);
            text-align: center;
        }
        
        .status-label {
            font-size: 0.9rem;
            color: var(--text-secondary);
            margin-bottom: var(--spacing-sm);
        }
        
        .status-value {
            font-size: 1.4rem;
            font-weight: 600;
        }
        
        .status-unit {
            font-size: 0.9rem;
            color: var(--text-tertiary);
            margin-left: var(--spacing-sm);
        }
        
        /* 防冻指标表格 */
        .indicator-table {
            width: 100%;
            border-collapse: collapse;
            margin-bottom: var(--spacing-lg);
        }
        
        .indicator-table th {
            text-align: left;
            padding: var(--spacing-md);
            background: rgba(26, 36, 53, 0.5);
            color: var(--text-secondary);
            font-weight: 500;
            border-bottom: 1px solid var(--border-color);
        }
        
        .indicator-table td {
            padding: var(--spacing-md);
            border-bottom: 1px solid var(--border-color);
        }
        
        .indicator-table tr:last-child td {
            border-bottom: none;
        }
        
        .status-normal {
            color: var(--success);
        }
        
        .status-warning {
            color: var(--warning);
        }
        
        .status-critical {
            color: var(--error);
        }
        
        /* 图表容器 */
        .chart-container {
            height: 300px;
            margin-top: var(--spacing-lg);
            position: relative;
        }
        
        .chart-placeholder {
            width: 100%;
            height: 100%;
            background: rgba(26, 36, 53, 0.3);
            border-radius: var(--radius-sm);
            position: relative;
            overflow: hidden;
        }
        
        .chart-grid {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            grid-template-rows: repeat(5, 1fr);
            opacity: 0.2;
        }
        
        .chart-grid-line {
            border-right: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
        }
        
        /* 防冻策略建议 */
        .strategy-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: var(--spacing-lg);
        }
        
        .strategy-item {
            background: rgba(26, 36, 53, 0.5);
            border-radius: var(--radius-sm);
            padding: var(--spacing-lg);
            border: 1px solid var(--border-color);
        }
        
        .strategy-title {
            font-size: 1.1rem;
            color: var(--accent);
            margin-bottom: var(--spacing-md);
            display: flex;
            align-items: center;
            gap: var(--spacing-sm);
        }
        
        .strategy-value {
            font-size: 1.6rem;
            font-weight: 700;
            margin-bottom: var(--spacing-sm);
        }
        
        .strategy-desc {
            color: var(--text-secondary);
            line-height: 1.6;
        }
        
        /* 响应式调整 */
        @media (max-width: 1200px) {
            .strategy-grid {
                grid-template-columns: 1fr;
            }
        }
        
        @media (max-width: 768px) {
            .navbar {
                flex-direction: column;
                height: auto;
                padding: var(--spacing-md);
            }
            
            .logo-area {
                padding-right: 0;
                border-right: none;
                margin-bottom: var(--spacing-md);
            }
            
            .nav-area {
                padding: 0;
                margin-bottom: var(--spacing-md);
            }
            
            .nav-menu {
                flex-wrap: wrap;
                justify-content: center;
                gap: var(--spacing-md);
            }
            
            .unit-selector {
                flex-direction: column;
                align-items: flex-start;
                gap: var(--spacing-md);
            }
            
            .selector-group {
                flex-direction: column;
                width: 100%;
                gap: var(--spacing-md);
            }
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar">
        <div class="logo-area">
            <div class="logo-icon">
                <i class="fas fa-bolt"></i>
            </div>
            <div class="logo-text">冷端优化系统</div>
        </div>
        
        <div class="nav-area">
            <ul class="nav-menu">
                <li class="nav-item">
                    <a href="#" class="nav-link">
                        <i class="fas fa-tachometer-alt"></i> 驾驶舱
                    </a>
                </li>
                
                <li class="nav-item">
                    <a href="#" class="nav-link">
                        <i class="fas fa-cogs"></i> 核心功能
                    </a>
                </li>
                
                <li class="nav-item">
                    <a href="#" class="nav-link active">
                        <i class="fas fa-snowflake"></i> 冬季防冻
                    </a>
                </li>
                
                <li class="nav-item">
                    <a href="#" class="nav-link">
                        <i class="fas fa-brain"></i> AI智能分析
                    </a>
                </li>
                
                <li class="nav-item">
                    <a href="#" class="nav-link">
                        <i class="fas fa-chart-bar"></i> 报表
                    </a>
                </li>
            </ul>
        </div>
        
        <div class="user-area">
            <div class="user-avatar">
                <i class="fas fa-user"></i>
            </div>
        </div>
    </nav>
    
    <!-- 内容区域 -->
    <div class="content-area">
        <div class="winter-protection">
            <!-- 机组选择区域 -->
            <div class="unit-selector">
                <div class="selector-group">
                    <div class="selector-item">
                        <div class="selector-label">电厂</div>
                        <select class="selector-select">
                            <option selected>华光电厂</option>
                            <option>华东电厂</option>
                            <option>华南电厂</option>
                            <option>西北电厂</option>
                        </select>
                    </div>
                    
                    <div class="selector-item">
                        <div class="selector-label">机组</div>
                        <select class="selector-select">
                            <option>#1机组</option>
                            <option>#2机组</option>
                            <option selected>#3机组</option>
                            <option>#4机组</option>
                        </select>
                    </div>
                </div>
            </div>
            
            <!-- 防冻指标监测和预测 -->
            <div class="card">
                <div class="card-header">
                    <h2 class="card-title">
                        <i class="fas fa-thermometer-half"></i> 防冻指标监测和预测
                    </h2>
                    <div class="card-action">
                        <i class="fas fa-expand"></i>
                    </div>
                </div>
                
                <!-- 运行状态 -->
                <h3 class="card-subtitle">
                    <i class="fas fa-wind"></i> 冷端运行状态
                </h3>
                <div class="status-grid">
                    <div class="status-item">
                        <div class="status-label">环境温度</div>
                        <div class="status-value">-8.5<span class="status-unit">°C</span></div>
                    </div>
                    
                    <div class="status-item">
                        <div class="status-label">主蒸汽流量</div>
                        <div class="status-value">2150<span class="status-unit">t/h</span></div>
                    </div>
                    
                    <div class="status-item">
                        <div class="status-label">凝结水流量</div>
                        <div class="status-value">1980<span class="status-unit">t/h</span></div>
                    </div>
                    
                    <div class="status-item">
                        <div class="status-label">背压</div>
                        <div class="status-value">15.2<span class="status-unit">kPa</span></div>
                    </div>
                    
                    <div class="status-item">
                        <div class="status-label">排汽温度</div>
                        <div class="status-value">42.5<span class="status-unit">°C</span></div>
                    </div>
                    
                    <div class="status-item">
                        <div class="status-label">凝结水温度</div>
                        <div class="status-value">36.8<span class="status-unit">°C</span></div>
                    </div>
                </div>
                
                <!-- 防冻指标表格 -->
                <h3 class="card-subtitle">
                    <i class="fas fa-clipboard-list"></i> 防冻指标状态
                </h3>
                <table class="indicator-table">
                    <thead>
                        <tr>
                            <th>指标</th>
                            <th>实际值</th>
                            <th>阈值</th>
                            <th>状态</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>凝结水流量</td>
                            <td>1980 t/h</td>
                            <td>≥ 1800 t/h</td>
                            <td class="status-normal">正常</td>
                        </tr>
                        <tr>
                            <td>空冷岛管束壁温</td>
                            <td>32.5 °C</td>
                            <td>≥ 30 °C</td>
                            <td class="status-warning">预警</td>
                        </tr>
                        <tr>
                            <td>凝结水过冷度</td>
                            <td>5.8 °C</td>
                            <td>≤ 6 °C</td>
                            <td class="status-warning">预警</td>
                        </tr>
                        <tr>
                            <td>防冻综合指数</td>
                            <td>0.45</td>
                            <td>≤ 0.5</td>
                            <td class="status-normal">正常</td>
                        </tr>
                    </tbody>
                </table>
                
                <!-- 图表区域 -->
                <div class="chart-container">
                    <div class="chart-placeholder">
                        <div class="chart-grid">
                            <div class="chart-grid-line"></div>
                            <div class="chart-grid-line"></div>
                            <div class="chart-grid-line"></div>
                            <div class="chart-grid-line"></div>
                            <div class="chart-grid-line"></div>
                            <div class="chart-grid-line"></div>
                        </div>
                        <div class="chart-labels">
                            <span>08:00</span>
                            <span>10:00</span>
                            <span>12:00</span>
                            <span>14:00</span>
                            <span>16:00</span>
                            <span>18:00</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 经济与安全并重的防冻策略 -->
            <div class="card">
                <div class="card-header">
                    <h2 class="card-title">
                        <i class="fas fa-shield-alt"></i> 经济与安全并重的防冻策略
                    </h2>
                    <div class="card-action">
                        <i class="fas fa-expand"></i>
                    </div>
                </div>
                
                <!-- 防冻建议 -->
                <h3 class="card-subtitle">
                    <i class="fas fa-lightbulb"></i> 防冻策略建议
                </h3>
                <div class="strategy-grid">
                    <div class="strategy-item">
                        <div class="strategy-title">
                            <i class="fas fa-fan"></i> 空冷岛防冻最低进汽流
                        </div>
                        <div class="strategy-value">1800 t/h</div>
                        <div class="strategy-desc">当前运行在安全范围内，但接近下限值，建议保持监控</div>
                    </div>
                    
                    <div class="strategy-item">
                        <div class="strategy-title">
                            <i class="fas fa-tachometer-alt"></i> 空冷岛防冻最低背压
                        </div>
                        <div class="strategy-value">14.5 kPa</div>
                        <div class="strategy-desc">当前背压高于安全值，可适当优化风机运行方式</div>
                    </div>
                    
                    <div class="strategy-item">
                        <div class="strategy-title">
                            <i class="fas fa-cogs"></i> 最优防冻策略
                        </div>
                        <div class="strategy-value">升高背压至安全背压</div>
                        <div class="strategy-desc">根据当前环境温度，建议将背压提升至14.0kPa，可提高防冻安全性</div>
                    </div>
                </div>
                
                <!-- 背压变化曲线 -->
                <h3 class="card-subtitle">
                    <i class="fas fa-chart-line"></i> 背压变化趋势
                </h3>
                <div class="chart-container">
                    <div class="chart-placeholder">
                        <div class="chart-grid">
                            <div class="chart-grid-line"></div>
                            <div class="chart-grid-line"></div>
                            <div class="chart-grid-line"></div>
                            <div class="chart-grid极速赛车开奖官网
                            <div class="chart-grid-line"></div>
                            <div class="chart-grid-line"></div>
                        </div>
                        <div class="chart-labels">
                            <span>08:00</span>
                            <span>10:00</span>
                            <span>12:00</span>
                            <span>14:00</span>
                            <span>16:00</span>
                            <span>18:00</span>
                        </div>
                    </div>
                </div>
                
                <!-- 背压-利润率-防冻指数曲线 -->
                <h3 class="card-subtitle">
                    <i class="fas fa-balance-scale"></i> 经济性与安全性平衡
                </h3>
                <div class="chart-container">
                    <div class="chart-placeholder">
                        <div class="chart-grid">
                            <div class="chart-grid-line"></div>
                            <div class="chart-grid-line"></div>
                            <div class="chart-grid-line"></div>
                            <div class="chart-grid-line"></div>
                            <div class="chart-grid-line"></div>
                            <div class="chart-grid-line"></div>
                        </div>
                        <div class="chart-labels">
                            <span>12 kPa</span>
                            <span>13 kPa</span>
                            <span>14 kPa</span>
                            <span>15 kPa</span>
                            <span>16 kPa</span>
                            <span>17 kPa</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <script>
        // 页面加载完成后执行
        document.addEventListener('DOMContentLoaded', function() {
            // 模拟实时数据更新
            function updateMetrics() {
                const metrics = document.querySelectorAll('.status-value');
                
                metrics.forEach(metric => {
                    const currentValue = parseFloat(metric.textContent);
                    const randomChange = (Math.random() - 0.5) * 0.5;
                    const newValue = currentValue + randomChange;
                    
                    // 更新数值
                    metric.textContent = newValue.toFixed(metric.classList.contains('power') ? 0 : 1);
                });
            }
            
            // 每5秒更新一次指标
            setInterval(updateMetrics, 5000);
        });
    </script>
</body>
</html>